#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QInputDialog>
#include <QDebug>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    //int x = QInputDialog::getInt(this,"2233","主打一个整数:");
//    double dx = QInputDialog::getDouble(this,"2233","主打一个数:");
//    qDebug() << dx;
    QStringList ssl;
    ssl.push_back("111");
    ssl.push_back("223");
    QString itemm = QInputDialog::getItem(this,"2233","输入点东西:",ssl);
    qDebug() << itemm;
}
